package routers

import (
	"bigbackend/controllers"

	"github.com/gin-gonic/gin"
)

// AdminRoute 管理员相关路由注册
func AdminRoute(e *gin.Engine) {
	adminRoutes := e.Group("/admin")
	{
		adminRoutes.POST("/register", controllers.AdminRegister)
		adminRoutes.POST("/login")
		adminRoutes.GET("/allAdmin", controllers.GetAllAdmin)
		adminRoutes.GET("/info")
		adminRoutes.PUT("/update")
		adminRoutes.PATCH("/updateAvatar")
		adminRoutes.PATCH("/updatePassword")
	}
}
